<?php
	$interview = CandidateToJobsTable::getListByJobId($data['id']); ?>
	
<div style="margin-top:20px">
		<?php echo __('label_interview',  null, 'company_jobs')?> 
		<a style="color:#00f; font-size:11px; font-style: italic;" href="<?php echo sfConfig::get('app_prefix') .  url_for2('company_export_current', array('sf_culture' => $sf_user->getCulture(), 'id' => $data['id'], 'action_name' => ADMIN_DEFINED::EXPORT))?>" target="_blank"><?php echo __('export_to_excel', null, 'company_jobs')?></a>

</div>
<div class="box-content-main">
	<table border="1" class="dt-tbl-ct-border" style="width:100%" cellpadding="2" cellspacing="0">
		<tr>
			<td class="dt-ct-header"><?php echo __('date_apply', null, 'company_jobs')?></td>
			<td class="dt-ct-header"><?php echo __('date_interview', null, 'company_jobs')?></td>
			<td class="dt-ct-header-final"><?php echo __('full_name', null, 'company_jobs')?></td>
			<td class="dt-ct-header"><?php echo __('result_status', null, 'company_jobs')?></td>
			<td  class="dt-ct-header"><?php echo __('action', null, 'company_jobs')?></td>
		</tr>
		<?php foreach($interview as $m):	?>
		<tr>
			<td><?php echo DateHelper::dateFormatFree($m['date_apply'], 'Y-m-d')?></td>
			<td><?php echo DateHelper::dateFormatFree($m['date_interview'], 'Y-m-d')?></td>
			<td><?php echo $m['Candidates']['full_name']?></td>
			<td><?php echo __('result_status_'.str_replace('-', '_', $m['result_status']), null, 'array_data')?></td>
			<td style="text-align: center">
				<a href="#" data-title="<?php echo __('edit', null, 'company_jobs')?>" class="apply-edit-in-job" data-candidate-id="<?php echo $m['candidate_id']?>" data-job-id="<?php echo $data['id']?>" title="<?php echo __('edit', null, 'company_jobs')?>"><img src="/css/admin/img/global/edit.png" /></a>
				<!-- <a href="#" class="apply-delete-in-job" data-confirm="<?php echo __('delete_confirm', null, 'company_jobs')?>" data-id="<?php echo $m['id']?>" title="<?php echo __('delete', null, 'company_jobs')?>"><img src="/css/admin/img/global/control-delete.png" /></a> -->
			</td>
		</tr>
	<?php endforeach; ?>
	<?php if(count($interview) ==0):?>
		<tr>
			<td colspan="5">
				<div class="note"><?php echo __('no_row_founded',null,'table_list')?></div>
			</td>
		</tr>
		<?php endif;?>
	</table>
</div>
